package com.example.demo.service.equipment;

import com.example.demo.domain.equipment.Attachment;
import com.example.demo.domain.equipment.repository.AttachmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AttachmentService {
    @Autowired
    private AttachmentRepository attachmentRepository;
    /**
     * @Description: 获取全部未审批列表
     * @Param:  无
     * @return:  全部未审批列表
     * @Author: wangze
     */

    public Attachment addattachment(Attachment a) {
        return attachmentRepository.save(a);
    }

}
